<%-- 
    Document   : ManagerUser
    Created on : Jul 11, 2011, 9:40:19 PM
    Author     : Hai
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="adminheader.jsp"></jsp:include>
            <div id="main">
                <div id="adminManager">
                    <jsp:include page="lefmenu.jsp"></jsp:include>
                </div>
                <div id="contentAdmin">
                    <fieldset>
                        <legend>Manager User</legend>
						<jsp:include page="Searchuser.jsp"></jsp:include>
                        <form action="">
                            <h4>
                                <table border="1">
                                    <thead>
                                        <tr>
                                            <th>Username</th>

                                            <th>FirstName</th>
                                            <th>LastName</th>
                                            <th>Birthday</th>
                                            <th>Gender</th>
                                            <th>Address</th>
                                            <th>Phone</th>
                                            <th>Email</th>
                                            <th>Approved</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <c:forEach items="${UserSearch}" var="one">
                                            <tr>
                                                <td>${one.username}</td>
                                                <td>${one.firstName}</td>
                                                <td>${one.lastName}</td>
                                                <td>${one.birthday}</td>
                                                <td><c:if test="${one.gender=='true'}">
                                                        Man
                                                    </c:if>
                                                    <c:if test="${one.gender=='false'}">
                                                        woman
                                                    </c:if>
                                                </td>

                                                <td>${one.address}</td>
                                                <td>${one.phone}</td>
                                                <td>${one.email}</td>
                                                <td>
                                                    <form action="controlertuan"/>
                                                    <c:if test="${one.approved=='true'}">
                                                        <input type="hidden" value="${one.username}" name="username"/>
                                                        <input type="hidden" value="LogUser" name="action"/>
                                                        <input type="submit" value="Log User"/>
                                                    </c:if>
                                                        <c:if test="${one.approved=='false'}">
                                                        <input type="hidden" value="${one.username}" name="username"/>
                                                        <input type="hidden" value="ActiveUser" name="action"/>
                                                        <input type="submit" value="Active User"/>
                                                    </c:if>
                                                    </form>
                                                </td>
                                            </tr>
                                        </c:forEach>
                                    </tbody>
                                </table>
                            </h4>
                        </form>
                    </fieldset>
                </div>
            </div>
            <div id="footer">
            </div>
        </div>
    </body>
</html>
